﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="APIIT_BPEL_Server._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to APIIT BPEL SERVICE</h2>
    <p>
        To learn more about APIIT BPEL service visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            
            style="z-index: 1; left: 469px; top: 502px; position: absolute; height: 25px;" 
            Text="Insert Activity Details" />
        <asp:Label ID="Label1" runat="server" 
            style="z-index: 1; left: 558px; top: 179px; position: absolute" Text="Label"></asp:Label>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="action_id" DataSourceID="SqlDataSource1" AllowPaging="True">
            <Columns>
                <asp:CommandField ShowEditButton="True" />
                <asp:BoundField DataField="action_id" HeaderText="action_id" ReadOnly="True" 
                    SortExpression="action_id" />
                <asp:BoundField DataField="activity_name" HeaderText="activity_name" 
                    SortExpression="activity_name" />
                <asp:BoundField DataField="action_url" HeaderText="action_url" 
                    SortExpression="action_url" />
                <asp:BoundField DataField="results" HeaderText="results" 
                    SortExpression="results" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            DeleteCommand="DELETE FROM [activity_details] WHERE [action_id] = @original_action_id AND [activity_name] = @original_activity_name AND (([action_url] = @original_action_url) OR ([action_url] IS NULL AND @original_action_url IS NULL)) AND [results] = @original_results" 
            InsertCommand="INSERT INTO [activity_details] ([action_id], [activity_name], [action_url], [results]) VALUES (@action_id, @activity_name, @action_url, @results)" 
            OldValuesParameterFormatString="original_{0}" 
            SelectCommand="SELECT [action_id], [activity_name], [action_url], [results] FROM [activity_details]" 
            
            UpdateCommand="UPDATE [activity_details] SET [activity_name] = @activity_name, [action_url] = @action_url, [results] = @results WHERE [action_id] = @original_action_id AND [activity_name] = @original_activity_name AND (([action_url] = @original_action_url) OR ([action_url] IS NULL AND @original_action_url IS NULL)) AND [results] = @original_results" 
            ConflictDetection="CompareAllValues">
            <DeleteParameters>
                <asp:Parameter Name="original_action_id" Type="Int32" />
                <asp:Parameter Name="original_activity_name" Type="String" />
                <asp:Parameter Name="original_action_url" Type="String" />
                <asp:Parameter Name="original_results" Type="String" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="action_id" Type="Int32" />
                <asp:Parameter Name="activity_name" Type="String" />
                <asp:Parameter Name="action_url" Type="String" />
                <asp:Parameter Name="results" Type="String" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="activity_name" Type="String" />
                <asp:Parameter Name="action_url" Type="String" />
                <asp:Parameter Name="results" Type="String" />
                <asp:Parameter Name="original_action_id" Type="Int32" />
                <asp:Parameter Name="original_activity_name" Type="String" />
                <asp:Parameter Name="original_action_url" Type="String" />
                <asp:Parameter Name="original_results" Type="String" />
            </UpdateParameters>
        </asp:SqlDataSource>
        <asp:TextBox ID="TextBox4" runat="server" 
            style="z-index: 1; left: 583px; top: 448px; position: absolute; width: 400px"></asp:TextBox>
        <asp:TextBox ID="TextBox3" runat="server" 
            style="z-index: 1; left: 345px; top: 451px; position: absolute; width: 213px"></asp:TextBox>
        <asp:TextBox ID="TextBox2" runat="server" 
            style="z-index: 1; left: 213px; top: 451px; position: absolute"></asp:TextBox>
        <asp:TextBox ID="TextBox1" runat="server" 
            style="z-index: 1; left: 80px; top: 451px; position: absolute"></asp:TextBox>
        <asp:Label ID="Label5" runat="server" 
            style="z-index: 1; left: 595px; top: 416px; position: absolute" Text="results"></asp:Label>
        <asp:Label ID="Label2" runat="server" 
            style="z-index: 1; left: 119px; top: 410px; position: absolute; right: 969px" 
            Text="action_id"></asp:Label>
        <asp:Label ID="Label3" runat="server" 
            style="z-index: 1; left: 233px; top: 411px; position: absolute" 
            Text="activity_name"></asp:Label>
        <asp:Label ID="Label4" runat="server" 
            style="z-index: 1; left: 373px; top: 413px; position: absolute" 
            Text="action_url"></asp:Label>
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
</asp:Content>
